package com.Lyoto.NetNotify.Constraint;

import lombok.Getter;

/**
 * @author Lyoto
 * @Description 错误消息枚举
 * @Date 2022-09-19 15:43
 * @Version
 **/
@Getter
public enum ExceptionEnum {
    /**
     * 配置文件错误
     */
    CONFIG_ERROR(1001,"配置文件读取错误，请检查！"),
    TAG_ERROR(1002,"读取标签配置错误或未配置"),
    
    FETCH_IP_ERROR(1003,"获取ip出现异常");
    /**
     * 错误码
     */
    final long errorCode;
    /**
     * 错误信息
     */
    final String msg;
    ExceptionEnum(long errorCode,String msg) {
        this.errorCode = errorCode;
        this.msg = msg;
    }
}
